﻿using System.Windows;

namespace FlagTunes.View
{
    /// <summary>
    /// Interaction logic for LibraryUpdateWindow.xaml
    /// </summary>
    public partial class LibraryUpdateWindow : Window
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="LibraryUpdateWindow"/> class.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        public LibraryUpdateWindow(MainWindowViewModel viewModel)
        {
            InitializeComponent();
            this.DataContext = viewModel;
        }

        /// <summary>
        /// Handles the Click event of the okButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
        private void okButton_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}